package SwingView.Quiz;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import JDBC.InstructorQuizActivities;
import SwingController.CmsPresenter;
import SwingModel.CmsQuiz;

public class ALQuizEdit implements ActionListener{

	CmsQuiz quiz;
	
	public ALQuizEdit(CmsQuiz quiz){
		this.quiz = quiz;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		CmsPresenter.mainView.displayQuizEditPage(InstructorQuizActivities.retrieveQuiz(CmsPresenter.user.getSelectedCourse().getCourseID(), quiz.getQuizID()));
	}

}
